cmake_minimum_required(VERSION 3.13)
project(CppDemo)
#包含头文件
include_directories(src/others/include)
include_directories(src/thread/include)
include_directories(src/base/include)

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")

#set(SOURCES)
#file(GLOB SOURCES "*.cpp" "*.c")
#搜索子目录
#file(GLOB_RECURSE SOURCES "*.cpp")

aux_source_directory(src/others OTHER_SRC)
aux_source_directory(src/thread TD_SRC)
aux_source_directory(src/base BASE_SRC)

add_executable(Base ${BASE_SRC})
add_executable(Others ${OTHER_SRC} )
add_executable(TD ${TD_SRC})